package utils;




import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class MessageUtils
{
  public MessageUtils()
  {
    super();
  }
  
  public static void displayErrorMessage(String fieldId , String msg)
  {
    FacesContext.getCurrentInstance().addMessage(fieldId, new FacesMessage(FacesMessage.SEVERITY_ERROR,msg,null));
  }
  public static void displayMessage(String fieldId ,String msg)
  {
    FacesContext.getCurrentInstance().addMessage(fieldId, new FacesMessage(msg));
  }
}
